package com.sa07.ui.uitls;

import java.util.Map;

import javax.swing.JButton;
import javax.swing.JTextField;

import com.sa07.ui.components.JstatusControl;
import com.sa07.ui.components.JtestJTable;
import com.sa07.ui.components.JtestResultContol;
import com.sa07.ui.components.JtestResultInfoBar;

/**
 * 控件上下文，用于保存控件
 * 
 * @author Long.shangbo
 *
 * 2014-2-17 下午9:07:39
 */
public class ControlContext {
	
	private static JButton autoBtn = null;
	
	private static JButton customBtn = null;
	
	private static JTextField codeTxt = null;
	
	private static JtestResultContol testResultControl = null;
	
	private static JtestResultInfoBar testResultInfoBar = null;
	
	private static JtestJTable testItemTable = null;
	
	private static JtestJTable hisTestTable = null;
	
	private static Map<String, JstatusControl> statusControls = null;
	
	public static JtestJTable getTestItemTable() {
		return testItemTable;
	}
	
	public static void setTestItemTable(JtestJTable testItemTable) {
		ControlContext.testItemTable = testItemTable;
	}
	
	public static JtestJTable getHisTestTable() {
		return hisTestTable;
	}
	
	public static void setHisTestTable(JtestJTable hisTestTable) {
		ControlContext.hisTestTable = hisTestTable;
	}
	
	public static JtestResultInfoBar getTestResultInfoBar() {
		return testResultInfoBar;
	}
	
	public static void setTestResultInfoBar(JtestResultInfoBar testResultInfoBar) {
		ControlContext.testResultInfoBar = testResultInfoBar;
	}
	
	public static JtestResultContol getTestResultControl() {
		return testResultControl;
	}
	
	public static void setTestResultControl(JtestResultContol testResultControl) {
		ControlContext.testResultControl = testResultControl;
	}
	
	public static JTextField getCodeTxt() {
		return codeTxt;
	}
	
	public static void setCodeTxt(JTextField codeTxt) {
		ControlContext.codeTxt = codeTxt;
	}
	
	public static JButton getAutoBtn() {
		return autoBtn;
	}
	
	public static void setAutoBtn(JButton autoBtn) {
		ControlContext.autoBtn = autoBtn;
	}
	
	public static JButton getCustomBtn() {
		return customBtn;
	}
	
	public static void setCustomBtn(JButton customBtn) {
		ControlContext.customBtn = customBtn;
	}
	
	public static Map<String, JstatusControl> getStatusControls() {
		return statusControls;
	}
	
	public static void setStatusControls(
			Map<String, JstatusControl> statusControls) {
		ControlContext.statusControls = statusControls;
	}
}
